Repository navigation
fix: keep unreadable settings intact, keep the window heartbeat alive, record a lasting launcher path, start checkout scripts directly on Windows - #20
Merged
Conversation
…l it is fixed Reading settings.json now tells a missing file (defaults) from one that cannot be read or parsed. Saving refuses to replace a file that cannot be read, so a toggle no longer writes defaults over the hook, profiles, switches and secret names. While the file cannot be read the gateway keeps its last good settings, logs the problem and starts no app, and formmcp settings shows the error.
Only taking requests refreshed the window's heartbeat, and the window takes no requests while it runs one, so a command that waited on the consent dialog or ran longer than ten seconds was reported to the agent as failed while the window still ran it. The window now refreshes the heartbeat every second while it is busy (extension_beat in the app, extensions beat on the command line).
Connecting an agent wrote the running program's path. When the app runs from a copy macOS makes on first launch, or from inside an AppImage's mount folder, that path is gone later and the agent cannot start formMCP. An AppImage now records the AppImage file itself, and a copy macOS made is refused with a note to move the app to Applications.
A dev checkout's .bat was started through a cmd /c line built from its path. It now starts the script itself, so the standard library quotes the path and escapes the arguments, and a path with a control character or % is refused with the reason.
…nnot be read Setting or removing a secret now reads settings.json first and stops before touching the keychain when the file cannot be read, so a secret is never stored or deleted without its name being recorded. The window's settings mark refuses an unreadable file instead of marking the defaults, so undo cannot later write defaults over a repaired file. The gateway also starts no app early while its settings cannot be read.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
formmcp settingsshows the error.extensions beaton the command line, POST /api/extensions/beat in the dev server).Tests
For the owner
How to ship